package com.clps.digital.service.impl;

import com.clps.digital.dao.NotificationDao;
import com.clps.digital.model.entity.Notification;
import com.clps.digital.service.NotificationService;

import java.util.List;

/**
 * @author: Chase
 * @date: 2024/9/3 10:14
 * @Version: 1.0
 * @description:
 */

public class NotificationServiceImpl implements NotificationService {

    private NotificationDao notificationDao;

    /**
     * 获取通知标题列表
     * @return
     */
    @Override
    public List<String> getNotificationTitle() {
        return notificationDao.getNotificationTitle();
    }

    /**
     * 获取通知详情列表
     * @return
     */
    @Override
    public List<Notification> getNotificationList() {
        return notificationDao.getNotificationList();
    }

    /**
     * 获取单个通知详情
     * @param id
     * @return
     */
    @Override
    public Notification getNotification(Long id) {
        return notificationDao.getNotification(id);
    }
}
